package org.baeldung;

import java.io.IOException;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.web.context.request.RequestContextListener;

@SpringBootApplication
public class UiApplication extends SpringBootServletInitializer
{
    
    @Bean
    public RequestContextListener requestContextListener()
    {
        return new RequestContextListener();
    }
    
    public static void main(String[] args)
        throws IOException
    {
        SpringApplication.run(UiApplication.class, args);
        Runtime.getRuntime().exec("cmd /c start /min http://127.0.0.1:8083/ui2/login");
    }
}